<div>
    <div>
        <div class="panel panel-default m-n">
            <div class="panel-heading font-bold">修改分润</div>
            <div class="panel-body">
                <form name="sellLevelEditForm" role="form" class="ng-pristine ng-valid">
                    <div class="m-b-xs">
                        <label>分润级别</label>
                        <input type="text" class="form-control" name="level" ng-model="sellLevel.level" readonly required>
                        <div ng-if="sellLevelEditForm.level.$touched">
                            <p ng-if="sellLevelEditForm.level.$error.required" class="text-danger h6">(分润级别是必需的)</p>
                        </div>
                    </div>
                    <div class="m-b-xs">
                        <label >分润名称</label>
                        <input type="text" class="form-control" name="name" ng-model="sellLevel.name" placeholder="输入分润名称" required>
                        <div ng-if="sellLevelEditForm.name.$touched">
                            <p ng-if="sellLevelEditForm.name.$error.required" class="text-danger h6">(分润名称是必需的)</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2_5 control-label">提成</label>
                        <div class="col-sm-9_5">
                            <div class="input-group m-b">
                                <input type="text" class="form-control" name="commission" ng-model="sellLevel.value" ng-pattern="/^[0-9]+(.[0-9]{2})?$/" placeholder="输入提成">
                                <span class="input-group-addon"> % </span>
                            </div>
                        </div>
                        <div ng-if="sellLevelEditForm.commission.$touched">
                            <p ng-if="sellLevelEditForm.commission.$error.required" class="text-danger h6">(提成值是必需的)</p>
                        </div>
                        <div ng-if="sellLevelAddForm.commission.$touched">
                            <p ng-if="sellLevelAddForm.commission.$error.pattern" class="text-danger h6">(请输入两位数以内的正数)</p>
                        </div>
                    </div>
                    <div class="text-center">
                        <div>
                            <button class="btn m-b-xs w-xs btn-info" ng-disabled="sellLevelEditForm.$invalid" ng-click="ok()">保存</button>
                            <button class="btn m-b-xs w-xs btn-danger" ng-click="cancel()">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>